// src/utils/auth.js

export const login = (username, password) => {
  // Implement login logic here
  // This is just a placeholder for demonstration
  if (username && password) {
    console.log(`Logging in as ${username}`)
    localStorage.setItem('user', JSON.stringify({ username }))
    return true
  }
  return false
}

export const logout = () => {
  localStorage.removeItem('user')
}

export const isAuthenticated = () => {
  return localStorage.getItem('user') !== null
}
